package com.xhx.spring.cycledepend;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @program: xh-learn-record
 * @description:
 * @author: sch
 * @create: 2023-03-03 19:05
 **/
@Component
public class BService {
//    @Autowired
    private AService aService;

    public BService(AService aService) {
        this.aService = aService;
    }

    public void log() {
        System.out.println("BService.log方法打印AService地址" + aService);
    }
}
